package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Reservation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ReservationMapper {

    Reservation getReservationById(String reserveId);

    void insertReservation(Reservation reservation);

    void updateReservation1(Reservation reservation);
    void updateReservation2(Reservation reservation);

    void deleteReservation(String reserveId);

    List<Reservation> getAllReservations();
    List<Reservation> getAllReservationsWithaccept0();
    List<Reservation> getAllReservationsWithfinish1(String coId);
    List<Reservation> getReservationsByStudentId(String sId);

    List<Reservation> getBycoId(String coId);


}
